1
สถาปัตยกรรมการผลิตและการควบคุมสภาพแวดล้อมการทำงาน
EvoClass-AI007Lesson 4
04:22

โครงสร้างหลักของการผลิต: ประตูผ่านและการดำเนินงาน

การเปลี่ยนแปลงตัวแทนอัตโนมัติจากสภาพแวดล้อมทดลองท้องถิ่นไปยังสภาพแวดล้อมการผลิต จำเป็นต้องเปลี่ยนลำดับความสำคัญของสถาปัตยกรรม ศูนย์กลางของระบบนี้คือ ประตูผ่านซึ่งทำหน้าที่เป็นแผงควบคุมข้อมูลทุกชนิดที่เข้ามาผ่านพื้นผิวและช่องทางต่าง ๆ ประตูผ่านช่วยให้มั่นใจว่า การดำเนินงานของตัวแทน—เครื่องกลไกที่เกิดการคิดจริงๆ — จะคงสถานะแยกจากกันและมั่นคง ในการบรรลุความสามารถในการใช้งานสูง สถาปัตยกรรมใช้แนวทาง RAG แบบเน้นท้องถิ่น (การสร้างข้อมูลที่เสริมด้วยการค้นหา) เพื่อให้มั่นใจว่าสิทธิ์ในการควบคุมข้อมูลจะคงอยู่โดยการเก็บข้อมูลที่ละเอียดอ่อนไว้ในสถานที่เดียวกัน แทนที่จะพึ่งพาคลาวด์ภายนอกเพียงอย่างเดียว

ปรัชญาการใช้ไฟล์มาร์กดาวน์เป็นหลัก

ระบบนิเวศน์ OpenClaw ดำเนินการตามปรัชญาการใช้ไฟล์มาร์กดาวน์เป็นหลัก หมายความว่า ข้อมูลความจริงของระบบถูกเก็บไว้ในไฟล์ที่อ่านได้ง่ายและควบคุมเวอร์ชันได้ แทนที่จะใช้ฐานข้อมูลที่ไม่สามารถมองเห็นได้

  • openclaw.json: จุดเข้าสู่ระบบระดับโลก กำหนดการตั้งค่าเครือข่าย (พอร์ต API WebSocket) การยืนยันตัวตน และการนำทางโมเดล
  • SOUL.md: กำหนด "วิญญาณ" ของตัวแทน—เอกลักษณ์หลัก เสียงโทน และขอบเขตพฤติกรรม
  • AGENTS.md: ทำหน้าที่เป็นแผนภาพโครงสร้าง รายละเอียดสถาปัตยกรรมวิศวกรรมและคำสั่งสร้าง
บัตรอ้างอิง: openclaw.json
"gateway_settings": { "port":18789, "auth":"Environmental_Injection" }, "runtime_manifests": { "identity":"./configs/SOUL.md", "workflow":"./configs/AGENTS.md", "memory":"Local-First (ภาพรวมเชิงความหมาย)" }
Type a command...
Question 1
Which file acts as the global configuration entry point, managing WebSocket ports and model routing?
SOUL.md
openclaw.json
AGENTS.md
HEARTBEAT.md
Question 2
Why does OpenClaw prioritize a "Markdown-First Philosophy"?
To make the system run faster on GPUs.
To ensure configuration is human-readable and version-controllable.
To replace the need for the Agent Runtime.
Challenge: Production Hardening
Secure the Gateway and Credentials.
Scenario: You are hardening a production server. You notice that the Gateway is communicating over port 18789 without authentication, and the API keys are hardcoded inside AGENTS.md.
Task
List the two critical security steps required to fix this based on production guidelines.
1. RCE Prevention: Secure the WebSocket API (Port 18789) in openclaw.json using proper authentication or environmental injection to prevent Remote Code Execution.

2. Credential Hardening: Remove hardcoded keys from AGENTS.md and move them to environment variables. AGENTS.md should only contain architecture and workflow logic.